#include "Camera.hpp"


Camera::Camera():
sf::View(sf::Vector2f(320,240),sf::Vector2f(640,480))
{

}
Camera::~Camera ()
{
}

Camera& Camera::instance()
{
    static Camera c;
    return c;
}

void Camera::update(const sf::Vector2f& posBall)
{
    setCenter(posBall.x,240);
}
